﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sicurezza.CA.DataProvider;
using OpenSSL.X509;
using Sicurezza.Entita;
using Sicurezza.CA.Entita;

namespace Sicurezza.CA.Manager
{
    public class ProfileManager
    {
        private static ProfileDataProvider dataProvider = new ProfileDataProvider();

        public static int GetId(X509Name n)
        {
            return dataProvider.GetId(n);
        }

        public static int Save(X509Name x509Name)
        {
            return dataProvider.Save(x509Name);
        }

        public static X509Name Get(int CertificateSerial)
        {
            return dataProvider.Get(CertificateSerial);
        }

        public static List<Profile> GetAll()
        { return dataProvider.GetAll(); }

        
    }
}
